package com.football.springboot.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.football.springboot.config.BigDecimalFormatSerializer;
import com.football.springboot.config.CustomerDoubleSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;


@ApiModel(value = "球队赛季数据表", description = "")
@TableName("team_data")
@Data
public class TeamData {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("总比赛数")
    private Integer totalRounds;

    @ApiModelProperty("总胜场")
    private Integer totalWin;

    @ApiModelProperty("总平场")
    private Integer totalFlatten;

    @ApiModelProperty("总负场")
    private Integer totalLose;

    @ApiModelProperty("总进球数")
    private Double totalGoal;

    @ApiModelProperty("总失球数")
    private Double totalFumble;

    @ApiModelProperty("平均控球")
    @JsonSerialize(using = CustomerDoubleSerialize.class)
    private Double totalControl;

    @ApiModelProperty("总射门数")
    private Double totalShoot;

    @ApiModelProperty("总射正数")
    private Double totalOntarget;


    @ApiModelProperty("总传球数")
    private Double totalPass;


    @ApiModelProperty("总成功传球数")
    private Double totalOkpass;


    @ApiModelProperty("总过人数")
    private Double totalSurpass;


    @ApiModelProperty("总越位数")
    private Double totalOffside;


    @ApiModelProperty("总犯规数")
    private Double totalFoul;


    @ApiModelProperty("总黄牌数")
    private Double totalYcard;


    @ApiModelProperty("总红牌数")
    private Double totalRcard;


    @ApiModelProperty("总积分")
    private Double totalPoints;

    @ApiModelProperty("球队id")
    private Integer teamId;

    @ApiModelProperty("联赛id")
    private Integer leagueId;

    @ApiModelProperty("赛季")
    private String leagueSeason;

    @ApiModelProperty("主客场")
    private String homeAway;


    @TableField(exist = false)
    private Double goalDiff;//净胜球

    @TableField(exist = false)
    private Double averageGoal;//场均进球

    @TableField(exist = false)
    private Double averageFumble;//场均失球

    @TableField(exist = false)
    private Double averageShoot;//场均射门

    @TableField(exist = false)
    private Double averageOntarget;//场均射正

    @TableField(exist = false)
    private Double averagePass;//场均传球

    @TableField(exist = false)
    private Double averageOkpass;//场均成功传球

    @TableField(exist = false)
    private Double averageSurpass;//场均过人

    @TableField(exist = false)
    private Double averageOffside;//场均越位

    @TableField(exist = false)
    private Double averageFoul;//场均犯规

    @TableField(exist = false)
    private Double averageYcard;//场均黄牌

    @TableField(exist = false)
    private Double averageRcard;//场均红牌

    @TableField(exist = false)
    private Team team; // 球队信息

    @TableField(exist = false)
    private League league; // 联赛信息



}
